﻿<!DOCTYPE html>
<html>
<head>

    <script src="view.js"></script>
    <title></title>
    Properties: path            :string
                instance        :set current template to variable of owner scope
                                 Ex: <div template="view" path="myPage.html" instance="myView">
                                            {{myView.viewStack.length}}
                                     </div>
                $currentView    :read only current DOM of view;
                $currentScope   : read only current scope of view;
    Events:on-load-view
    Description: This template will generate Angular Scope base on template in "path". The $$$doClose will be insert to genrated Scope 
    For this template using

    <div template="view" path="[path of template|scope variable store template path]">

    </div>
    Note: root template path depend on ngW8.$("$loader").$setRootTemplate
    ex:
    <div template="view" path="myPage.html">

    </div>
</head>
<body>
    <div ng-transclude style="color:#000">

    </div>
    <script>
        initView($tmp);
    </script>
</body>
</html>